export function hasSame(posion1:Array<[number, number]>,posion2:Array<[number, number]>){
  // const obj2top = posion2[0][1]
  // const obj2height = posion2[2][1] - posion2[0][1]
  // const obj1top = posion1[0][1]
  // const obj1height = posion1[2][1] - posion1[0][1]
  // const obj2left = posion2[0][0]
  // const obj2width = posion2[2][0] - posion2[0][0]
  // const obj1left = posion1[0][0]
  // const obj1width = posion1[2][0] - posion1[0][0]
  return posion2.some(([x , y]) => {
    if (posion1[0][0] < x && posion1[0][1] < y && posion1[3][0] > x && posion1[3][1] > y) {
      return true
    }
    return false
  })
}